unit uWindowImage;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, ExtCtrls;

type
  TfWindowImage = class(TForm)
    Image1: TImage;
    procedure Image1MouseDown(Sender: TObject; Button: TMouseButton;
      Shift: TShiftState; X, Y: Integer);
  private
    { Private declarations }
  public
    WindowOptionXPos, WindowOptionYPos: Integer;
    WindowOptionDoit: Boolean;
  end;

var
  fWindowImage: TfWindowImage;

implementation

{$R *.dfm}

procedure TfWindowImage.Image1MouseDown(Sender: TObject;
  Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
begin
  WindowOptionXPos := X;
  WindowOptionYPos := Y;
  WindowOptionDoit := true;
  Close();
end;

end.
